package com.education.ai.model.dto;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 登录请求
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class LoginRequest {
    
    @NotBlank(message = "角色不能为空")
    private String role;

    @NotNull(message = "登录方式不能为空")
    private Integer loginType; // 1-工号/学号/账号登录，2-手机号登录

    @NotBlank(message = "登录ID不能为空")
    private String loginId;

    @NotBlank(message = "密码不能为空")
    private String password;
} 